:root{--primary:#2563eb;--primary-dark:#1d4ed8;--secondary:#f59e0b;--success:#10b981;--error:#ef4444;--light:#f8fafc;--dark:#1e293b;--gray:#64748b;--bg-gradient:linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%)}*{margin:0;padding:0;box-sizing:border-box}body{font-family:'Roboto',sans-serif;background:var(--bg-gradient);color:var(--dark);min-height:100vh}.loading-screen{position:fixed;top:0;left:0;width:100%;height:100%;background:linear-gradient(135deg,#1a1a2e,#16213e);display:flex;justify-content:center;align-items:center;z-index:9999;transition:opacity 0.5s ease-out}.loading-container{width:300px;text-align:center}.typing-loader{display:flex;justify-content:center;margin-bottom:30px}.typing-dot{width:12px;height:12px;margin:0 5px;background-color:#e94560;border-radius:50%;animation:typingAnimation 1.4s infinite ease-in-out both}.typing-dot:nth-child(1){animation-delay:-0.32s}.typing-dot:nth-child(2){animation-delay:-0.16s}.typing-dot:nth-child(3){animation-delay:-0.08s}.typing-dot:nth-child(4){animation-delay:0s}@keyframes typingAnimation{0%,80%,100%{transform:scale(0);opacity:.5}40%{transform:scale(1);opacity:1}}.progress-container{width:100%;height:8px;background-color:rgb(255 255 255 / .1);border-radius:4px;overflow:hidden;margin-bottom:20px}.progress-bar{height:100%;width:0%;background:linear-gradient(90deg,#e94560,#f9b572);border-radius:4px;transition:width 0.3s ease}.loading-text{color:#fff;font-size:18px;font-weight:300;letter-spacing:1px;text-transform:uppercase;animation:pulse 2s infinite}@keyframes pulse{0%,100%{opacity:.6}50%{opacity:1}}.header{background:#fff;box-shadow:0 2px 10px rgb(0 0 0 / .1);padding:.5rem 2rem;display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;z-index:999}.logo{display:flex;align-items:center;gap:.5rem}.logo-icon{font-size:1.8rem;color:var(--primary)}.logo-text{font-family:'Poppins',sans-serif;font-weight:700;font-size:1.3rem;background:linear-gradient(to right,var(--primary),var(--primary-dark));-webkit-background-clip:text;-webkit-text-fill-color:#fff0}.nav-links{display:flex;gap:1.5rem}.nav-link{font-size:18px;text-decoration:none;color:var(--primary-dark);font-weight:500;transition:color 0.3s}.nav-link:hover{color:var(--primary)}.main-content{flex:1;padding:1rem;max-width:850px;margin:0 auto;width:100%}.typing-area{background:#fff;border-radius:12px;box-shadow:0 5px 15px rgb(0 0 0 / .05);overflow:hidden}.typing-header{padding:1rem 1.5rem;border-bottom:1px solid #e2e8f0;display:flex;justify-content:space-between;align-items:center}.typing-title{font-weight:600;color:var(--dark);line-height:2.2rem}.typing-body{padding:.3rem;min-height:227px;overflow:hidden}.text-display{font-size:1.9rem;line-height:2.3rem;color:var(--dark);height:220px;overflow-y:auto;position:relative}.text-line{margin-bottom:1rem;word-spacing:.3em;white-space:wrap;padding:.5rem}.current-line{background:rgb(37 99 235 / .08);border-radius:6px;position:relative}.current-line::before{content:"|";animation:blink 1s infinite;color:var(--primary);font-weight:700;position:absolute;left:-5px}@keyframes blink{0%,100%{opacity:1}50%{opacity:0}}.char{position:relative;margin:0 .5px;border-radius:5px}.char.correct{color:#0e630e;background:rgb(0 255 0 / .2)}.char.incorrect{color:darkred;background:pink}@keyframes blink{0%,100%{opacity:1}50%{opacity:.5}}.char.blinking{animation:blink 1s infinite;background-color:rgb(74 144 226 / .5);border-radius:2px}.stats-bar{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem;padding:1rem 1.5rem;border-top:1px solid #e2e8f0}.stat-item{text-align:center}.stat-value{font-size:1.8rem;font-weight:700;color:var(--primary)}.stat-label{font-size:.9rem;color:var(--gray)}.sidebar{display:flex;flex-direction:column;gap:1.5rem;margin-bottom:10px}.control-panel{background:#fff;border-radius:12px;box-shadow:0 5px 15px rgb(0 0 0 / .05);padding:.5rem}.panel-title{font-weight:600;margin-bottom:1rem;color:var(--dark);display:flex;align-items:center;gap:.5rem}.btn-group{display:flex;gap:.75rem;display:none;margin-bottom:1rem}.btn{padding:.75rem 1.25rem;border:none;border-radius:8px;font-weight:500;cursor:pointer;transition:all 0.3s;display:inline-flex;align-items:center;gap:.5rem}.btn-primary{background:var(--primary);color:#fff}.btn-primary:hover{background:var(--primary-dark);transform:translateY(-2px)}.btn-outline{background:#fff0;border:1px solid var(--gray);color:var(--dark)}.btn-outline:hover{border-color:var(--primary);color:var(--primary)}.difficulty-options{display:flex;gap:1rem}.difficulty-btn{flex:1;padding:.5rem 1.9rem;text-align:center;border-radius:6px;font-size:1rem;cursor:pointer;transition:all 0.3s;border:1px solid #e2e8f0}.difficulty-btn:hover{border-color:var(--primary)}.difficulty-btn.active{background:var(--primary);color:#fff;border-color:var(--primary)}#customTextArea{padding:15px 5px;font-size:15px;letter-spacing:1px;font-family:sans-serif;resize:none;border-radius:8px;field-sizing:content;width:300px;margin-right:20px}.custom-TextArea{display:flex;justify-content:flex-start;margin-bottom:5px}.keyboard-container{margin-top:.2rem}.keyboard-row{display:flex;justify-content:center;margin-bottom:.5rem;gap:.25rem}.key{width:55px;height:45px;display:flex;align-items:center;justify-content:center;background:#f1f5f9;border-radius:6px;font-weight:700;box-shadow:0 2px 3px rgb(0 0 0 / .1);transition:all 0.2s}.key.active{background:var(--primary);color:#fff;transform:scale(.95)}.key-space{width:200px}.result-modal{position:fixed;top:0;left:0;width:100%;height:100%;background:rgb(0 0 0 / .5);backdrop-filter:blur(5px);display:none;justify-content:center;align-items:center;z-index:1000}.result-content{background:#fff;border-radius:12px;width:90%;max-width:500px;padding:2rem;box-shadow:0 10px 25px rgb(0 0 0 / .1);animation:slideUp 0.4s ease}@keyframes slideUp{from{transform:translateY(30px);opacity:0}to{transform:translateY(0);opacity:1}}.cooldown-timer{margin:15px 0;font-size:1.2rem;color:#666}.timer{margin-right:80px}#tryAgainBtn:disabled{opacity:.7;cursor:not-allowed}.result-header{text-align:center;margin-bottom:1.5rem}.result-title{font-size:1.8rem;color:var(--primary);margin-bottom:.5rem}.result-stats{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-bottom:2rem}.result-stat{background:#f8fafc;padding:1.5rem;border-radius:8px;text-align:center}.result-value{font-size:2rem;font-weight:700;color:var(--primary);margin-bottom:.25rem}.result-label{color:var(--gray);font-size:.9rem}.result-actions{display:flex;gap:1rem;justify-content:center}.footer{background:var(--dark);color:#fff;padding:2rem 1rem 0;margin-top:auto}.footer-container{max-width:1120px;margin:0 auto;display:grid;grid-template-columns:repeat(2,1fr);gap:2rem;padding-bottom:2rem}.footer-column{padding:0 1rem}.footer-title{font-family:'Poppins',sans-serif;font-size:1.2rem;margin-bottom:1.5rem;color:var(--light);position:relative;padding-bottom:.5rem}.footer-title::after{content:'';position:absolute;left:0;bottom:0;width:111px;height:2px;background:var(--primary)}.footer-text{color:var(--white);line-height:1.6;margin-bottom:1.5rem}.footer-social{display:flex;gap:1rem}.social-link{color:#fff;background:rgb(255 255 255 / .1);width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;transition:all 0.3s;text-decoration:none;font-size:1rem}.social-link:hover{background:var(--primary);transform:translateY(-3px)}.footer-links{list-style:none}.footer-link{color:var(--white);text-decoration:none;display:block;padding:.5rem 0;transition:all 0.3s}.footer-link:hover{color:var(--primary);padding-left:5px}.footer-bottom{background:rgb(0 0 0 / .2);padding:1rem;text-align:center}.copyright{color:var(--gray);font-size:.9rem}@media (min-width:1025px){.ads-show{display:none}}@media (max-width:1024px){.main-content{max-width:770px;margin-left:-5px}.text-display{font-size:1.8rem}@media (max-width:940px){.ads-show{display:none}}@media (max-width:768px){.main-content{max-width:680px}.text-display{font-size:1.6rem}.ads-show{display:none}.timer{margin-right:0}}